package src.chapter19;

/*import org.jetbrains.annotations.NotNull;*/

import com.sun.istack.internal.NotNull;

public class Max {
    /**
     * Return the maximum between two objects
     */
    public static Comparable max(@NotNull Comparable o1, Comparable o2) {
        if (o1.compareTo(o2) > 0)
            return o1;
        else
            return o2;
    }
}
